package chap3_10;

import java.util.Scanner;

public class Exer3_10_7 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n;
        while (true) {
            System.out.println("请输入一个大于6的偶数：");
             n = input.nextInt();
            if (n % 2 == 0&&n>6) {
                break;
            }
            System.out.println("输入错误，请重新输入：");
        }
          int sum = 0;
        for(int i=2;i<=n;i++){
            for(int j=2;j<=i;j++){
                if(i%j==0&&i!=j){
                    break;
                }
                if(j==i){
                    for(int k=2;k<=n;k++){
                        for(int l=2;l<=n;l++){
                            if(k%l==0&&k!=l){
                                break;
                            }
                            if(k==l&k+i==n){
                                System.out.println(n+"="+k+"+"+i);
                            }
                        }
                    }
                }
            }
        }
    }
}